import request from '@/utils/request'

/*------get客户数据--------*/
export function getCustomerData(query) {
  return request({
    url: '/api/work/customer/',
    method: 'get',
    params: query
  })
}

/*------add客户数据--------*/
export function addCustomerData(data) {
  return request({
    url: '/api/work/customer/',
    method: 'post',
    data
  })
}

/*------edit客户数据--------*/
export function editCustomerData(obj) {
  return request({
    url: '/api/work/customer/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete客户数据--------*/
export function delCustomerData(pk) {
  return request({
    url: '/api/work/customer/'+pk+'/',
    method: 'delete',
  })
}